import request from "@/utils/request";

// 创建学校班级信息
export function createSchoolClass(data) {
  return request({
    url: "/system/school-class/create",
    method: "post",
    data: data,
  });
}

// 更新学校班级信息
export function updateSchoolClass(data) {
  return request({
    url: "/system/school-class/update",
    method: "put",
    data: data,
  });
}

// 删除学校班级信息
export function deleteSchoolClass(id) {
  return request({
    url: "/system/school-class/delete?id=" + id,
    method: "delete",
  });
}

// 获得学校班级信息
export function getSchoolClass(id) {
  return request({
    url: "/system/school-class/get?id=" + id,
    method: "get",
  });
}

// 获得学校班级信息分页
export function getSchoolClassPage(query) {
  return request({
    url: "/system/school-class/page",
    method: "get",
    params: query,
  });
}

// 导出学校班级信息 Excel
export function exportSchoolClassExcel(query) {
  return request({
    url: "/system/school-class/export-excel",
    method: "get",
    params: query,
    responseType: "blob",
  });
}
